home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_07_04 / v7n4038a.txt < prev    next >
Text File  |  1988-10-08  |  1KB  |  30 lines

  1. #ifndef BYTE_DEF
  2. typedef unsigned char byte;
  3. typedef unsigned short word;
  4. #define BYTE_DEF
  5. #endif
  6.  
  7. /*----------------------------------------------------------------------*/
  8. /* This is the structure of a Apple DOS 3.3 directory entry.            */
  9. /* Reference: "Beneath Apple DOS", Worth & Lechner. Brady Books.        */
  10. /*----------------------------------------------------------------------*/
  11. struct dir_entry { /* Structure of Apple DOS directory entry */
  12.     byte track;        /* Track of first block list block */
  13.     byte sect;        /* Sector of first block list block */
  14.     byte ftype;        /* Type of DOS 3.3 file */
  15.     byte fname[30]; /* File name */
  16.     int fsize;        /* Size of file in blocks */
  17. };
  18.  
  19. /*----------------------------------------------------------------------*/
  20. /* The structure of an Apple DOS 3.3 directory block.                   */
  21. /* Reference: "Beneath Apple DOS", Worth & Lechner. Brady Books.        */
  22. /*----------------------------------------------------------------------*/
  23. struct dir_blk {             /* Structure of DOS directory block */
  24.     byte notused;            /* Not used */
  25.     byte track_lnk;            /* track for next directory block */
  26.     byte sect_lnk;            /* Sector for next directory block */
  27.     byte notused2[8];        /* more not used space */
  28.     struct dir_entry dir[7];/* 7 directory entries per block */
  29. };
  30.